﻿namespace GX
{
    public delegate void EventDelegate(IEventDispatcher target,int type, Event evt);
	public interface IEventDispatcher
	{
		void AddEvent(int eventID,EventDelegate del);
		void RemoveEvent(int eventID,EventDelegate del);
		void SendEvent (int eventID, object body=null,string name=null);
	}
    public interface IEventManager : IEventDispatcher,IService
    {
        void PostEvent(int eventID, object body = null, string name = null);
    }
}
